﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DualPlaneFR4Paster.Migrations
{
    public partial class 添加数据1512 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.UpdateData(
                table: "MParams",
                keyColumn: "Id",
                keyValue: 1,
                column: "Value",
                value: "1");

            migrationBuilder.InsertData(
                table: "MParams",
                columns: new[] { "Id", "Alias", "Floor", "Name", "Type", "Unit", "Value" },
                values: new object[] { 2, "Z2安全位", 1, "Z2SafePos", "String", "mm", "2.1" });

            migrationBuilder.InsertData(
                table: "MParams",
                columns: new[] { "Id", "Alias", "Floor", "Name", "Type", "Unit", "Value" },
                values: new object[] { 3, "Z3安全位", 1, "Z3SafePos", "String", "mm", "3.2" });

            migrationBuilder.InsertData(
                table: "MParams",
                columns: new[] { "Id", "Alias", "Floor", "Name", "Type", "Unit", "Value" },
                values: new object[] { 4, "Z4安全位", 1, "Z4SafePos", "String", "mm", "20" });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "MParams",
                keyColumn: "Id",
                keyValue: 2);

            migrationBuilder.DeleteData(
                table: "MParams",
                keyColumn: "Id",
                keyValue: 3);

            migrationBuilder.DeleteData(
                table: "MParams",
                keyColumn: "Id",
                keyValue: 4);

            migrationBuilder.UpdateData(
                table: "MParams",
                keyColumn: "Id",
                keyValue: 1,
                column: "Value",
                value: "20");
        }
    }
}
